public class OppositeModel extends OpponentModel
negotiationSession, opponentUtilitySpace| Constructor and Description |
|---|
OppositeModel() |
| Modifier and Type | Method and Description |
|---|---|
double |
getBidEvaluation(Bid bid)
Determines the utility of a bid according to the preference profile.
|
java.lang.String |
getName() |
double |
getWeight(Issue issue)
Returns the weight of a particular issue in the domain.
|
void |
init(NegotiationSession negotiationSession,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the model.
|
void |
updateModel(Bid bid,
double time)
Method used to update the opponent model.
|
cleanUp, getIssueWeights, getOpponentUtilitySpace, init, isCleared, setOpponentUtilitySpace, setOpponentUtilitySpace, updateModelpublic void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OpponentModelinit in class OpponentModelnegotiationSession - reference to the state of the negotiationjava.lang.Exceptionpublic void updateModel(Bid bid, double time)
OpponentModelupdateModel in class OpponentModelbid - to update the model with.time - at which the bid was offered.public double getBidEvaluation(Bid bid)
OpponentModelgetBidEvaluation in class OpponentModelbid - of which the utility is calculated.public double getWeight(Issue issue)
OpponentModelgetWeight in class OpponentModelissue - from which the weight should be returnedpublic java.lang.String getName()
getName in class OpponentModel